﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RepairChecker.Master" AutoEventWireup="true" CodeBehind="stats.aspx.cs" Inherits="RepairChecker.stats" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ObjectDataSource ID="sourceFinishedJobs" runat="server" 
        SelectMethod="GetJobs" TypeName="RepairChecker.Entity">
        <SelectParameters>
            <asp:ControlParameter ControlID="lstCrew" Name="crewId" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="lstDistrict" Name="districtId" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:Parameter DefaultValue="3" Name="showMode" Type="Int32" />
            <asp:ControlParameter ControlID="lstJobType" DefaultValue="" Name="jobTypeId" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="txtFaultString" Name="faultIdString" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="lstDateType" Name="dateType" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="caleStart" Name="dateStart" 
                PropertyName="SelectedDate" Type="DateTime" />
            <asp:ControlParameter ControlID="caleEnd" Name="dateEnd" 
                PropertyName="SelectedDate" Type="DateTime" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:TextBox ID="txtFaultString" runat="server" AutoPostBack="True" 
        Visible="False"></asp:TextBox>
    区县：<asp:DropDownList ID="lstDistrict" runat="server" AutoPostBack="True">
</asp:DropDownList>人猿：<asp:DropDownList ID="lstCrew" runat="server" AutoPostBack="True">
</asp:DropDownList>
    类型：<asp:DropDownList ID="lstJobType" runat="server" AutoPostBack="True">
</asp:DropDownList>时间：<asp:DropDownList ID="lstDateType" runat="server" 
        AutoPostBack="True">
    </asp:DropDownList>
    <br />
故障：<asp:CheckBoxList ID="clstFaults" runat="server" AutoPostBack="True" 
        onselectedindexchanged="clstFaults_SelectedIndexChanged">
    </asp:CheckBoxList>
    <br/>
    <table>
    <tr>
    <td><asp:Calendar ID="caleStart" runat="server" BackColor="White" BorderColor="#3366CC" 
        BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" 
        Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
    <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
    <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
    <OtherMonthDayStyle ForeColor="#999999" />
    <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
    <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
    <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" 
        Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
    <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
    <WeekendDayStyle BackColor="#CCCCFF" />
    </asp:Calendar></td>
    <td><asp:Calendar ID="caleEnd" runat="server" BackColor="White" BorderColor="#3366CC" 
        BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" 
        Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
    <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
    <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
    <OtherMonthDayStyle ForeColor="#999999" />
    <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
    <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
    <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" 
        Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
    <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
    <WeekendDayStyle BackColor="#CCCCFF" />
    </asp:Calendar></td>
    </tr>
    
    </table>


    <asp:GridView ID="dataFinishedJobs" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" DataSourceID="sourceFinishedJobs" ForeColor="Black" 
        GridLines="Horizontal" onrowdatabound="dataFinishedJobs_RowDataBound">
        <Columns>
            <asp:BoundField DataField="DistrictName" HeaderText="区县" 
                SortExpression="DistrictName" />
            <asp:BoundField DataField="OfficeName" HeaderText="网点" 
                SortExpression="OfficeName" />
            <asp:TemplateField HeaderText="股长~">
                <ItemTemplate>
                    <asp:BulletedList ID="lstFaults" runat="server">
                    </asp:BulletedList>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CallInDate" HeaderText="接报时间" 
                SortExpression="CallInDate" Visible="False" />
            <asp:BoundField DataField="NotifyDate" HeaderText="通知时间" 
                SortExpression="NotifyDate" NullDisplayText="(无)" />
            <asp:BoundField DataField="ArriveDate" HeaderText="到达时间" 
                SortExpression="ArriveDate" />
            <asp:BoundField DataField="FinishDate" HeaderText="FinishDate" 
                SortExpression="FinishDate" />
            <asp:BoundField DataField="CrewName" HeaderText="维护人员" 
                SortExpression="CrewName" />
            <asp:BoundField DataField="JobType" HeaderText="报修类型" 
                SortExpression="JobType" />
            <asp:BoundField DataField="Memo" HeaderText="备注" 
                SortExpression="Memo" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#242121" />
    </asp:GridView>
</asp:Content>
